#include <iostream>
#include <string>

using namespace std;

struct Entry
{
    string name;
    int number;
};
// 输出{"name",bumber}
ostream &operator<<(ostream &os, const Entry &e)
{
    return os << "{\"" << e.name << "\"," << e.number << "}";
}
// 输入{"name",bumber}
istream &operator>>(istream &is, Entry &e)
{
    char c, c2;
    if (is >> c && c == '{' && is >> c2 && c2 == '\"')
    {
        string name;
        while (is.get(c) && c != '\"')
            name += c;
        if (is >> c && c == ',')
        {
            int number = 0;
            if (is >> number >> c && c == '}')
                e = {name, number};
            return is;
        }
    }
    is.setstate(ios_base::failbit);
}

int main(int argc, char const *argv[])
{
    Entry e{"shj", 44};
    cin >> e;
    cout << e << endl;
    return 0;
}
